package com.atguigu.springcloud.alibaba.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author timiv
 */
@FeignClient(value = "seata-accout-service")
public interface AccountFeign {

    @PostMapping("/account/sub")
    void subMoney(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}
